<?php
// 后台管理
namespace app\controller;
use core\Controller;
use app\model\Goods;
class Admin extends Controller{
	public function index(){
		$goods = new Goods(); 
		$name = input('get.name');
		$data = $goods->getAll();
		$this->assign('data', $data);
		$this->fetch('admin.php');
	}
}